

/**
 * @Author DengJia
 * @Date 2021/7/26 22:28
 * @Description
 */

public class Hello2 {
    static int anInt = 100;

    public static void main(String[] args) {
        Hello2 h1 = new Hello2();
        Hello2 h2 = new Hello2();

        Hello2.anInt++;
        System.out.println(Hello2.anInt);

        System.out.println("h1.anInt = " + h1.anInt);
        System.out.println("h2.anInt = " + h2.anInt);
    }
}
